package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.CategoryFragmentContract;
import com.huopaolan.yohuoshop.Mvp.Model.CategoryFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class CategoryFragmentModules {
    private CategoryFragmentContract.ICategoryView iView;

    public CategoryFragmentModules(CategoryFragmentContract.ICategoryView iView) {
        this.iView = iView;
    }

    @Provides
    public CategoryFragmentContract.ICategoryView providerIView() {
        return iView;
    }

    @Provides
    public CategoryFragmentContract.ICategoryModel providerIModel() {
        return new CategoryFragmentModel();
    }
}
